package cn.rkylin.oms.area.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.area.domain.TopArea;

@Repository(value = "topAreaDAO")
public class TopAreaDAOImpl implements ITopAreaDAO{

    @Autowired
    protected IDataBaseFactory dao;

    /**
     * 构造函数
     */
    public TopAreaDAOImpl() {

    }

    
    @Override
    public List<TopArea> findAreaList(TopArea topArea) throws Exception {
        List<TopArea> list = dao.findAllList("selectByAreaList", topArea);
        return list;
    }

    @Override
    public List<TopArea> getAreaCode(Map reqMap, String statement) throws Exception {
        return dao.findList(statement,reqMap);
    }



}
